/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.bttk.entity;

import com.thinkgem.jeesite.modules.sys.entity.User;
import java.util.Date;

import org.hibernate.validator.constraints.Length;

import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 商户管理Entity
 * @author soyatec
 * @version 2016-11-02
 */
public class TUserWithdraw extends DataEntity<TUserWithdraw> {
	
	private static final long serialVersionUID = 1L;
	private User user;		// 申请提现商户编号 父类
	private Date requestTime;		// 申请提现时间
	private String withdrawMoney;		// 申请提现金额
	private String status;		// 提现状态(已申请，已付款)
	
	public TUserWithdraw() {
		super();
	}

	public TUserWithdraw(String id){
		super(id);
	}

	public TUserWithdraw(User user){
		this.user = user;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getRequestTime() {
		return requestTime;
	}

	public void setRequestTime(Date requestTime) {
		this.requestTime = requestTime;
	}
	
	public String getWithdrawMoney() {
		return withdrawMoney;
	}

	public void setWithdrawMoney(String withdrawMoney) {
		this.withdrawMoney = withdrawMoney;
	}
	
	@Length(min=0, max=15, message="提现状态(已申请，已付款)长度必须介于 0 和 15 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
}